
R = { 20, 40, 60, 80, 100 }
K = { {100,300}, {400,600}, {700,900} }
D = { {100,300}, {400,600}, {700,900} }

math.randomseed(os.time())

function generate()
	
	
	
	for i, r in pairs(R) do
		local cmd = ''
		
		
		for i, k in pairs( K ) do
			for i, d in pairs( D ) do
				cmd = r .. ' ' .. r/2 .. ' ' .. k[1] .. ' ' .. k[2] .. ' ' .. d[1] .. ' ' .. d[2]
				file = string.gsub(cmd, ' ', '_' )
				
				cmd = './random_generator ' .. cmd .. ' ' .. file .. ' ' .. math.random(10000000)
				
				print( cmd )
				os.execute( cmd )
				--return;
			end
		end
		
		
	end
end

generate()
